#include "losu.h"
#include <stdio.h>
#include <stdlib.h>

/* need  config */
#include "pkgs.inc"

/* need losuc -c main.els */
static const char __main__[] =
#include "main.els.inc"
    ;

/* main */
int32_t
main (int32_t argc, const char **argv)
{
  int32_t i = 0;
  LosuVm *vm = vm_create (1024);
  if (vm)
    {
      LosuPackages = &_inlinePkgs[0];
      vm_init (vm, argc, argv);
      i = vm_dobyte (vm,__main__,sizeof(__main__),"main.els");
    }
  else
    i = -1;
  vm_close(vm);
  return i;
}